package org.analyzer.custom;

import java.io.IOException;
import java.io.Reader;
import java.util.Map;

import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.lucene.analysis.util.ResourceLoaderAware;
import org.apache.lucene.analysis.util.TokenizerFactory;
import org.apache.lucene.util.AttributeFactory;
import org.apache.lucene.util.Version;

public class CustomTokenizerFactory extends TokenizerFactory implements ResourceLoaderAware {

	public CustomTokenizerFactory(Map<String, String> args) {
		super(args);
	}


	@Override
	public Tokenizer create(AttributeFactory factory, Reader input) {
		return new CustomTokenizer(Version.LATEST, input);
	}


	@Override
	public void inform(ResourceLoader loader) throws IOException {
		
	}

}
